package rolesystem.core;

/**
 * Exceptions of this class are thrown by methods of rolesystem.
 */
public class RoleException extends Exception
{
	/**
	 * This message means that the specified role is not supported.
	 */
	public static final String NOT_SUPPORTED=
		"The specified role is not supported.";
	/**
	 * This message means that the specified addressee is not valid.
	 */
	public static final String NOT_VALID_ADD=
		"The specified addressee is not valid.";
	/**
	 * This message means that it is not possible to make the requested
	 * registration, because too many registrations have been made.
	 */
	public static final String TOO_MANY=
		"Too many registrations have been made: retry later.";
	/**
	 * This message means that the utilized registration has been
	 * dismissed.
	 */
	public static final String DISMISSED=
		"This registration has been dismissed.";
	/**
	 * This message means that the requested action is not allowed.
	 */
	public static final String NOT_ALLOWED=
		"This action is not allowed.";


	public RoleException()
	{
		super();
	}


	/**
	 * @param msg Exception message. It can be choosen from messages
	 * defined in this class.
	 */
	public RoleException(String msg)
	{
		super(msg);
	}
}
